package com.milo.coding.simulate;

import com.milo.coding.simulate.spring.ApplicationContext;

public class Test {

    public static void main(String[] args) {
        // 启动，扫描，创建Bean（非懒加载的单例bean）
        ApplicationContext applicationContext = new ApplicationContext(AppConfig.class);
        System.out.println(applicationContext.getBean("orderService"));
        System.out.println(applicationContext.getBean("orderService"));
        System.out.println(applicationContext.getBean("orderService"));
    }
}
